<style>
    #warehouse-form strong{
        color: red;
    }
    .el-dialog--center .el-dialog__body {
        text-align: initial;
        padding: 25px 25px 30px;
    }

    .el-dialog__body {
        padding: 20px;
        color: #48526a;
        font-size: 14px;
    }
    .el-dialog__body {
        padding: 30px 20px;
        color: #606266;
        line-height: 24px;
        font-size: 14px;
    }
    .in-content .products-list {
        border-bottom: 1px solid #ddd;
    }
    .in-content {
        width: 750px;
    }
    .in-content .products-list .head-box {
        padding-bottom: 10px;
    }
    .in-content .products-list .k1, .in-content .products-list .k2 {
        width: 170px;
    }
    .in-content .products-list .list-content .pd-item {
        height: 50px;
        line-height: 50px;
        border-top: 1px solid #ddd;
    }
    .in-content .products-list .k-text {
        display: inline-block;
        vertical-align: top;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .el-input-number .el-input__inner {
        -webkit-appearance: none;
        padding-left: 50px;
        padding-right: 50px;
        text-align: center;
    }
    .el-input__inner {
        background-color: #fff;
        background-image: none;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        color: #606266;
        display: inline-block;
        font-size: inherit;
        height: 40px;
        line-height: 40px;
        outline: 0;
        padding: 0 15px;
        transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        width: 100%;
    }

</style>
<form id="warehouse-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="el-dialog__body">
        <div class="in-content">
            <div class="products-list">
                <div class="head-box">
                    <span class="k-text k1"><b>商品名</b></span> <span class="k-text k2"><b>SKU</b></span><span class="k-text k2"><b>库存（总）</b></span><span class="k-text k3"><b>库存（出库仓） QTY</b></span></div>
                <div class="list-content">
                    {foreach $items as $key=>$item}
                    <div class="pd-item">
                        <span class="k-text k1" >{$item.itemname}</span>
                        <span class="k-text k2">{$item.sku}</span>
                        <span class="k-text k2">0</span>
                        <div class="k-text k3 el-input">
                            <input type="number" name="row[itemnum][]" min="1" step="1" max="1000000" class="el-input__inner" value="1">
                            <input type="hidden" name="row[itemname][]" value="{$item.itemname}">
                            <input type="hidden" name="row[itemsku][]" value="{$item.sku}">
                            <input type="hidden" name="row[itemid][]" value="{$item.id}">
                        </div>
                        <a href="javascript:;" class="btn btn-xs btn-danger del-item" data-original-title="删除"><i class="fa fa-trash"></i></a>
                    </div>
                    {/foreach}
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>仓库</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[warehouseid]" id="c-warehouseid" class="form-control">
                {foreach name="wms" item="vo"}
                <option value="{$vo.code}">{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-file" class="control-label col-xs-12 col-sm-2">附件</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-file" data-rule="" class="form-control" size="50" name="row[file]" type="text" value="" placeholder="多个文件时请上传rar/zip文件, 且不超过10M" readonly="readonly">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-file" class="btn btn-danger plupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i>点击上传</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" data-rule="" class="form-control" name="row[remark]"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderid')}</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderid" class="form-control form-control" name="row[orderid]" type="text" value="">
        </div>
    </div><div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Recipient')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-recipients" data-rule="required"  class="form-control form-control" name="row[recipients]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Phone')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-mobile" data-rule="required"  class="form-control form-control" name="row[mobile]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">{:__('Company')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-company" class="form-control form-control" name="row[company]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Country')}</label>
    <div class="col-xs-12 col-sm-8">
        <select class="form-control" name="row[state]" data-rule="required">
            {volist name="global" id="vo"}
            <option value="{$vo[0]}">{$vo[0]}-{$vo[1]}</option>
            {/volist}
        </select>
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Province')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-province" data-rule="required"  class="form-control form-control" name="row[province]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('City')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-city" data-rule="required"  class="form-control form-control" name="row[city]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Postcode')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-postcode" data-rule="required"  class="form-control form-control" name="row[postcode]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><strong>*</strong>{:__('Address1')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-addressone" data-rule="required"  class="form-control form-control" name="row[addressone]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">{:__('Address2')}</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-addresstwo" class="form-control form-control" name="row[addresstwo]" type="text" value="">
    </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>


</form>

